package com.cwj.designpatterns.abstractfactory;

/**
 * @author chenwujie
 * @date 2021-03-16 10:37
 */
public class TomsFarm implements Farm {
    @Override
    public Fruit createFruit() {
        return new Apple();
    }

    @Override
    public Animal createAnimal() {
        return new Pig();
    }
}
